import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from './base.entity';

/**
 * 面试邀请
 */
@Entity('apply')
export default class Apply extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'user_id', comment: '用户ID' })
  userId: string;

  @Column({ name: 'friend_id', comment: '朋友ID' })
  friendId: string;

  @Column({ name: 'nick_name', comment: '用户昵称' })
  nickName: string;

  @Column({ comment: '面试日期' })
  date: Date;

  @Column({ name: 'start_time', comment: '开始时间' })
  startTime: string;

  @Column({ name: 'end_time', comment: '结束时间' })
  endTime: string;

  @Column({ comment: '面试地址' })
  address: string;

  @Column({ name: 'job_name', comment: '岗位名称' })
  jobName: string;

  @Column({ default: 0, comment: '查阅状态 0=未读 1=系统不通知 2=拒绝 3=同意' })
  status: number;
}
